package com.kt.mes.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.kt.mes.mapper.ProlSiteActParamMapper;
import com.kt.mes.domain.ProlSiteActParam;
import com.kt.mes.service.IProlSiteActParamService;

/**
 * 动作参数Service业务层处理
 * 
 * @author lzc
 * @date 2021-01-15
 */
@Service
public class ProlSiteActParamServiceImpl implements IProlSiteActParamService 
{
    @Autowired
    private ProlSiteActParamMapper prolSiteActParamMapper;

    /**
     * 查询动作参数
     * 
     * @param id 动作参数ID
     * @return 动作参数
     */
    @Override
    public ProlSiteActParam selectProlSiteActParamById(Long id)
    {
        return prolSiteActParamMapper.selectProlSiteActParamById(id);
    }

    /**
     * 查询动作参数列表
     * 
     * @param prolSiteActParam 动作参数
     * @return 动作参数
     */
    @Override
    public List<ProlSiteActParam> selectProlSiteActParamList(ProlSiteActParam prolSiteActParam)
    {
        return prolSiteActParamMapper.selectProlSiteActParamList(prolSiteActParam);
    }

    /**
     * 新增动作参数
     * 
     * @param prolSiteActParam 动作参数
     * @return 结果
     */
    @Override
    public int insertProlSiteActParam(ProlSiteActParam prolSiteActParam)
    {
        return prolSiteActParamMapper.insertProlSiteActParam(prolSiteActParam);
    }

    /**
     * 修改动作参数
     * 
     * @param prolSiteActParam 动作参数
     * @return 结果
     */
    @Override
    public int updateProlSiteActParam(ProlSiteActParam prolSiteActParam)
    {
        return prolSiteActParamMapper.updateProlSiteActParam(prolSiteActParam);
    }

    /**
     * 批量删除动作参数
     * 
     * @param ids 需要删除的动作参数ID
     * @return 结果
     */
    @Override
    public int deleteProlSiteActParamByIds(Long[] ids)
    {
        return prolSiteActParamMapper.deleteProlSiteActParamByIds(ids);
    }

    /**
     * 删除动作参数信息
     * 
     * @param id 动作参数ID
     * @return 结果
     */
    @Override
    public int deleteProlSiteActParamById(Long id)
    {
        return prolSiteActParamMapper.deleteProlSiteActParamById(id);
    }
}
